package exercise3;

import java.util.Scanner;

public class NumberOfDivision extends BaseExample{
	public void divide_judge() {

		this.logger.debug("请输入一个整数:");
		@SuppressWarnings("resource")
		Scanner scan = new Scanner(System.in);
		int i = scan.nextInt();

		if (i % 5 == 0 && i % 6 == 0)
			this.logger.debug(i + " is divisible by both 5 and 6");
		else if (i % 5 != 0 && i % 6 != 0)
			this.logger.debug(i + " is not divisible by either 5 or 6");
		else
			this.logger.debug(i + " is divisible by 5 or 6, but not both");
	}
}
